Moved some database stuff out of util.Util and into the db package.