Modify SQL to reflect new server and mediafile schema for new installs