satyan/sugar — pull request #23 by breber (2013-06-30 03:19:17+00:00)
Title: Prevent crash when trying to open database

When the database has already been opened, don't try reopening it.
Instead, just return the current reference.