Split SQLite data context into in memory and file based contexts