Removed ticket query from models