using dbname instead of pouchname