Add fetch paramter to queryDb-function