adding code to render posts from the database