commit query