db layer and email service
db layer