database connection and config file