Added sqlite3 implementation and tests