Some common view functions moved to Query.py
Added refresh button for Data tab in TabTable