Aded mongoose model for posts.