fix migration with WAL mode

The current `migratePersistentStoreOfType:...` method does not correctly move all the necessary sqlite files to the correct place during the migration.  In particular, the `.sqlite-wal` and `.sqlite-shm` files are not moved, resulting in a corrupted store after the method is complete.