accidently put db.py in wrong place, added some db funcitonality