Added SQLite functionality