fixed db.sh