TBD-1018: fix the problem of wrong db type.