more db.py - done for now, added placeholder functions