Regisdter users and save to MySQL.