Finished implementing functionality. Fixed testdata.sql values (removed extra linebreaks)
Minor fix of SQL query in the invite model