Improved projects tracking on database

Improved project <-> user model
and fixed a bug that prevented joining of more than one project