Find all files in the current directory (and its subdirectories) whose name ends with ".db", and for each of them, execute the command "tar czf {filename}.tar.gz {filename}".
find ./ -iname "*.db" -exec tar czf {}.tar.gz {} \;