fix roles in rest and database