MySQL to SQLite migration