Refactor: make getting published form reusable
- code was specific to schema generator
- intend to use the same code in new RDBMS persistence layer