First hand is fine. It seems pretty likely that either he was slowplaying a moster or he hit 2 pair/a set with K9 or 99 on the turn. It's hard to find a fold there though considering how lousy the players are at this level. He could just have easily have had some garbage hands at this level like 92s/93s/A9. Against decent opposition I think I might find a turn fold here though. At the very least you were smart enough to try to get to showdown as cheaply as possible when he played back at you (check/called the river).

Hand two is the one I don't like. Slow down with two callers on the flop when the turn card completes the flush. Don't pay off the chasers. Check the turn and call a small bet if you think you've got implied odds vs. a flush if you somehow make your boat on the river. Check/fold to any reasonable action on the turn and tell yourself somebody chased a flush and hit.