move db.py to root