Converted cli crud helper to Q