Data storage using SQLite database