change the db enumeration algorithm for faster startup