Query commit