Setting up database stuff.