add db file versioning codes