Massive refactor in progress - removing SQLite altogether, using JSON to serialize everything