Hey Xago, I got the mistake which you are doing,
Look carefully, that when you are calculating Wronskian, you may be taking the g(x) to be qt, which is wrong because you will have to take it qt/D, as you have earlier divided the whole equation with D to get the characteristic solution...