Less silly code

* Decode json when commands come in
* json only used when sending data to client(s), regular tables used
internally