fix #11516: add upgrade scripts from 4.4 to 5.0

A good way to test the upgrade may be to import some data into 4.4, actually do the upgrade, and see if the system still works okay. I tried to make the SQL scripts actually quite human-readable.

Fixes http://trac.openmicroscopy.org.uk/ome/ticket/11516.