try to require db globally