SQL and Version merge from mangosR2