Calculate the following indefinite integral: $$\int \frac{x^{2} + x + 2}{x^{3} - px^{2}} \, dx$$ where $p$ is a real constant.