database utilities