Moving more database/model discovery code into the db library, made modulePath a Module function that can be used externally