hashes saved in database, include cleanup