Closing of sql connection Handled

Sql connection closing handled and repositioned in DatabaseHandler class