Fixed refresh series, graph, and data table upon changing database