fetchSulkaDBRows fetches rows according to viewmode