edit get updated for sql