added possibility to define query limit in backend