Working commit of query