pacific.db refactoring