Added update sql from plg_roistat