security improvment for yhsm-db-export