add dbname and fix NewTree to Put only if Get fails