added more db access helper functions