This is a problem with the existing code, but the callback doesn't seem to get called in this case? Unless of course, the callback gets called via onsuccess after the db's been created but that's unclear here.

Maybe just worth an XXX comment for now.