- refactored selectDb method