require posts model in app.js