Moved database connection to the config.