database config, Sendgrid Event procesing