Sql connection and configuration file