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.
Merge pull request #5 from qwertyzzz18/database-upgrade-fix

Database upgrade fix
Merge pull request #4 from qwertyzzz18/export-fix

Fixed "Export" -> "Basic disassembly" argument error
Merge remote-tracking branch 'upstream/master'