fix the issue with sql update query in risimple