Do JSON in Python

I replaced the Postgres-specific JSON column type with one that should work for SQLite and other databases as well. *Appears* to work.

* [x] Confirm that it works.