for db in `ls *db` do dbname=$(dirname ${db})/$(basename ${db} .db) done