Moved database stuff.