updated db interface, added some todos