Delete sendgrid at start and fix insert to database