refactors db references