NXIO-153 change the way DB is created