use xt-database in #373