fix SQL. insert on update a role (improve performance only for mysql)