Changes to the script and adding email to the users table.