#64, Removing duplicates from participations table and adding constraint to prevent future duplicates
(cherry picked from commit c3d195c)
Fixed #64, Combining creation and updating of participation in the same controller method
(cherry picked from commit e39d851)