Fix compile error with SQLite.

Start implementing two main tasks.