tried to get all posts from database, did not succeed