Adding database utilities