Replace manual database creation with jq-based one
Replace manual database creation with jq-based one

This allows us to have a much, much cleaner implementation, makes the database
file look nicer and, as an added bonus, will properly escape all characters in
status messages that so far may have broken the json.

BrowncoatShadow/basin.sh