[PATCH]  Fix db calls from previous commit.