So, since your math is perfectly fine I think it's an issue of .extent saving properly.
Try using DBMeter.resize(getWord(DBMeter.position,0), %mExt, %mEx0, %mEx2)
Also, I suggest using %this instead of the name of the object. I realize you'll probably never have more than one, but it's still weird to program in such a static way.
Also, I'm a little confused on why you don't just set DBMeter.count = %level; instead of doing weird math to derive the count from the size of the panel.