crmSQL now works with json
json structure:
{"query":"SELECT....%1..%2","params":{"1":{"name":"id",type:"Integer"},"2":{"name":"gender",type:"Integer"}}}