postgre and count fix

postgre change: in model : when different field name was used exapmle…
…: someField:{field:'some_field', type: JSON} update didnt work because the update query didn't generate correctly;

in conut: when the search parameter was field with different column name example : someField:{field:'some_field'} the query didnt form correctly