improved sql connection class a little