fixing sql connection settings