job db functions to another file