Simple migration script for php and modx