Index: get list of posts from database