Fix SQLite grader, cleanup.

- Move formatting methods to BaseGrader
- Create SQLGrader for shared logic b/w MySQL and SQLite graders