added friendship table and fixed some issue with the mailer