added unique field index for email to migration, changes in Db classes