fix SQL. insert on update a role (improve performance only for mysql)
add script to upgrade 525 to 600