devdri/awake — pull request #5 by qwertyzzz18 (2014-01-25 00:33:58+00:00)
Title: Database upgrade fix

upgrade-database is having strange issues with operations not being atomic, breaking upgrades that span multiple versions.
Fixed by closing and reopening the connection to the database after each upgrade operation.