Adding a better mail script, the trial database and a function2.php used by the mail script