added database utilities