Add ContractCost to supported classes
Added qWhere
Refactored query function into create and attemptClientCall