Retrieve data for stream gauges from db and return as JSON.