implemented closeConnection in class DBConnect