Combine database and email with statements