The river call really isn't that bad, just because he had a flush on this occasion doesn't mean you need to automatically assume you made a hurrendous play.

Betting the turn isn't good though since I don't see him folding anything you beat on the flop. The only thing we can get value from is a draw and these can easily bluff you on the river anyway. Keep the pot small, c/f the turn depending on reads you could c/c a blank river if you feel he's the type to bluff missed draws.

You're possibly calling to split on the river, but if there are any bluffs or retarded value bets with worse hands in his range it's an easy call. I would bet the river for value myself since 2 pair, sets will pay you off loads.