moved getDbOpts into prototype attributes so it can be used by objects that derive from this prototype