fixed errors in linking User table
added many-to-many relations between the tables