Open the database once per timeseries
Open the database once per timeseries

Instead of opening it every time we ran a query. Opening multiple times leads
to issues with too many opens

e-mission/e-mission-server,yw374cornell/e-mission-server,sunil07t/e-mission-server,joshzarrabi/e-mission-server,sunil07t/e-mission-server,shankari/e-mission-server,shankari/e-mission-server,joshzarrabi/e-mission-server,joshzarrabi/e-mission-server,e-mission/e-mission-server,shankari/e-mission-server,e-mission/e-mission-server,yw374cornell/e-mission-server,shankari/e-mission-server,sunil07t/e-mission-server,sunil07t/e-mission-server,joshzarrabi/e-mission-server,yw374cornell/e-mission-server,e-mission/e-mission-server,yw374cornell/e-mission-server