- registerview db.flush to have the userid in the registrationevent