Store the form data in the database before sending it via e-mail (see #6941)