fixed queries when delete or update role and user