First hand is fine. You're flipping against even the tightest of ranges I can give him (2 pair, sets, AQ). I do doubt that he's going to be raising draws that often so I don't like 3betting the flop.

Second is also fine. Just fold the river. I doubt players at this level are bluffing much there.