fix wrong db handle