Adjusted advanced app migration so it is now OK for non-mysql