Config and database connection