Initial database config, and migrations for the base database tables.