Preflop
Given that he is a calling station, and you are the middling stack, I prefer to pot control and just call preflop. I dont think, the 3-bet does anything good for you here. It bloats the pot, when you are out of position with a hand, which is only really happy, when it flops a set.
Flop
You flopped a bad pair and a bad draw, and this is exactly why, it would have been better to keep the pot small. I dont see any point in betting with this hand. He is never folding a better pair or a better draw, and a bet definitely put your stack at risk.
Turn
Now you have a bad flush, and this is the whole issue with bloating the pot. I guess, you are kind of committed to it now, and that check-calling is better than jamming, because it keep his range wider.
__________________
|