Write new users to database.