moved viewRoles call from syncChange to onDBChange