updates for sql