Fixed SQLite tests. Still need tests for commands