added db.py file connection to postgres + datatables