Set up tmp.data so that results can be cleared before return()
Change fetch to dbFetch

Function ‘fetch’ to be deprecated in RSQLite