Added a factored using SQLITE.
SQL factorer