fix indexing bug on db gen
refactor bar grapher for generalized input
add sorting and rerendering of graph
include serializeJSON
fix bug; GET params use req.query, date.setDate is a mutator
give inputs names so they can be picked up by serializeJSON
refactor sorting and add filtering
fix bug; add exit() for bar groups
fix bug; typo in DAYS array