Revert "Encode shapes json in postgresql"

This reverts commit 30303c2382758b2f7f8dcf067302c9ca8df207ff.

Fixes #26