Remove nested try/catch.. replace with double catch
remove "global levels" from schema generator. this is dead code now!
Remove ancient db upgrade script
Make unit test more clear