Updated query create signature to be compatible with rest