more interfacing with db