Issue #46 , added invitation to the database