main.js and initdb.js now use new post schema