Fix sql row count and a typo.