delete database when log out