second version of api, now can search, sort and limit results
second version of quoteQueries class, now can be used with api.php for search, sort and limit results
fixed bug with non array datas