hot <- liftIO $ query conn
"select to_seconds(timestamp) as time, value+adj as value from \
\(select c.timestamp timestamp, c.value value, \
\(select sum(value) from hotadj a where a.timestamp <= c.timestamp \
hot <- liftIO $ query conn
"select to_seconds(timestamp) as time, value+adj as value from \
\(select c.timestamp timestamp, c.value value, \
\(select sum(value) from hotadj a where a.timestamp <= c.timestamp \