modified posts list to use real data from database instead of dummy data