bug fix
for multi db connetion