move filename into db.py