added some useful functions to gladdb