Retrieve posts from db.