Added a few functions and a to-do list to db.py