Move the database migration into the post-upgrade scripts
for freenas and freenasUI.  (This is overkill, only one of
them needs to do it, but we don't have that sort of ability
set up.  Yet?)

Also fix a previously-missed format as number for the sequence;
it's now a string and that caused it to give a traceback.
Merge branch 'master' of gitserver.ixsystems.com:/git/repos/freenas-build/freenas