A shell script using SQL to migrate Escenic from version 4 to version 5