SQLite integration

First steps toward SQLite integration