commit create query with criteria