Removed sending the registration email and tweaked the database script.