User registration now updates the database.