added missing sql updates