db: fixed adapter raise ` import error` to DBError when unknow adapter