Finish transition to nsRefPtr
Move db open off main thread