fixed bug getting connection string from settings