First of all yes as played you call, and its not a close decision. I am playing on
pokerstars right now, so I cant fire up ICMizer, but AQ is far from the bottom of your calling range in this situation. When you play like this with a small raise from SB, and you have this stack size, and the opponent have you well covered, he is printing money by jamming on you. So he should be doing that extremely wide, which to be fair he kind of was.
And for this reason I dont have a raising range in this situation. I fold my worst hands, and the rest I limp to give him a worse risk/reward for making this jam. If he puts in a small raise, then I have hands like AQ, which I will then limp-jam. This gives me fold equity and keep his head down a bit, so he dont raise me, every single time I limp from SB.
So rather than focusing on the result of this hand, you should work on your general SB strategy and understand, when you can have a raising range, and when you cant. You should also work on your mental game, because you are getting upset about some totally standard tournament situations.
It bother you, that you were playing for an hour, and then you failed to cash, because you lost an all-in preflop hand with 21BB. But this is totally normal, and in MTTs with a slow structure you might have been playing for 3-4 hours, when it happen. Also these 45 man SnGs are grinder tournaments. If you play them, you should have at least 3-4 tables running all the time, and a session should consist of at least 10 of them. And then it should really not matter, if you dont cash in one of them, because in most sessions you will cash in 1-2 of the others.
Its not like, this is a situation, where it made any sort of sense to fold your way to the money. A min cash is only 1,43$, which is essentially your money back with some change. An average stack for reaching the final table is 7.500 chips, and an average stack for cashing is a little over 9.000 chips. So with 3.400 chips your only consideration is to win more chips. This was a fine spot to get a dubble up. This time it failed to happen, and then you just register for the next one. Its nothing to get upset about or regret.