Updated mail templates
Added db configuration for travis-ci testing