Only migrate data when the legacy database location is known