create db.py file for connection struct