update models.js and postControllers.js