Fixed wrong arguments in db helper hooks.