destruct disconnect for database class