updated posts in database with new data