added models and routes for posts