Added SQLite DB handling