bugfix if copy of db between 2 different machines