Added missing SQL update