Update and rename db.py to config.py