I don't think you need to create a separate initDB() function for this app.  If we're launched normally, or if we're launched with browse, the DB has to be initialized in exactly the same way.  The gallery app has an initDB() function because it has to initialize itself differently for browse and pick activities.  For the pick activity it shows only photos and not videos, and in the past it had very different initalization code when it was not showing videos.