refactoring/breaking cfquery