Fix schema: posts.public_id is text
Revert "Update db schema"

This reverts commit 1a9a6f94148f46f529f8d0de2428540eb7e40899.
Fix published_at fields
Add public_id
Add missing fields in json response for POST /posts