At my last permie place I got cheesed off with contractors earning more than twice as much as me, and being treated with more respect. I knew they were no more capable than me, but I was talked down to by the management. So I left.
I think in some jobs management like to talk up the abilities of contractors.
There's a lot of traits needed to contract. You need reasonable technical proficiency, though I've seen contractors whose skills are nothing to talk about. You need the ability to get on with work, in a professional manner, and to take responsibility for it. That means producing code that works, and delivering it on time. And documenting it if that is required. You also need to help permies, and generally fit in, and make yourself useful. You can't let your ego stand out, and most contractors do as they are told. That said, I find I am treated with respect, and allowed considerable freedom.
You also need to realise that you might be between contracts for extended periods unless you have skills that are in demand. I do okay, but I am lucky. I've known equally capable people less lucky then me.
A colleague went contracting after 3 years. He does not seem particularly bright or knowledgeable, but he has the right attitude, knows how to learn skills, and does a very good job. In practice he has a lot of gumption, and is very good at blagging. He's also good at learning stuff as and when he needs it.
I'm sure you have an idea of how good your work is compared to the contractors. 2 years does not sound long though, especially in database work, which requires lots of experience unless I am mistaken. Can you take responsibility for large parts of a project, and deliver on time, or do you do bits and pieces? Do you have design skills?