modularize txdb open path.