fix problem with reopening admin database (#28)