Minor refactor publish.py
Add script to generate skeleton posts
Improve db recreation and add doc-strings
Add some test posts