added sql connection testing