Database setup.