refactor: Pass an sqlite3 connection into checker rather than making it perform the connection itself

This is so that we can use an in-memory database for test