Updates the mysql script that is actually getting executed (in snapshot-common-db) based on earlier changes. Also moves the creation of the snapshot table to the top to allow defined foreign keys in other tables to resolve properly.