Merge pull request #1 from WiseLib/req-PUB1

Req pub1
Fixed DBManager.postPublication
prepare for changes in DBManager and JSONManager