Removed opening database thread - wasn't incrementing use_count