fix same bug on term edit
add db file