replaced the hash with the databases thru out the app