Now close file or db before to open a new, fix #14