redo changes to use new dbFetch functions with parameter arrays