added db.py, mongo2 does not exist yet so no testing