scoped_array is not applicable in DBPrivate, since it uses C++ delete[]
refactor col_name_arr free'ing
add LogReader base class containing default query_*_mean implementation
refactor timerange_query test
query_timerange_mean test