automating v3 schema imports + fixies mysql commands
\o/ SQL upgrade script almost OK.