migrating files to dbpath