Changed format of select and update commands