Amitriptyline is actually an old fashioned anti-depressant, not often used as an anti-d now, but because of the way it works it can be useful in smaller doses as a pain relief.. It works on the neurves...
Don't know if it pushes up BG, have you ruled out other factors, such as an infection...