Set up database configuration.