seems to work when I don't export db code from another module?