SQLite pt. 2 implementation