Problem while creating many-to-many relationship