Trailing comma is not going to work on some older browsers
Replace the insert/update/remove RPCs with a generic 'exec' RPC