added sql connection and unit test for that