made changes to the database to add the join table and perform hashing