Fixed image in mailer and multi-tenancy
added migration code