Export Basic Disassembly fix

Removed proj parameter from ProcedureRangeAnalysis.render(), using
stored value instead. Fixes "TypeError: render() takes exactly 3
arguments (2 given)" when exporting basic assembly. Changed
ProcedureDisasmPage to match.
Fixed database upgrade bugs

upgrade-database is having strange issues with changes not occurring in
order, breaking the upgrade process if going across multiple versions.
Fixed by reopening database connection after each upgrade.