Added missing sql update