CloseDataBase() fixed