debug info sql link bugfix
db manager code cleanup