move the replace_email to the ::DB module