email database backend