Second commit of db.py