Adds formula and test for SQLite.

Signed-off-by: Olli Wang <olliwang@ollix.com>