add db.py an environment file