adding database and mailing helpers