JSON and SQLite data handlers