Fix db call setup because it was referring to the wrong app.