Saving to SQLite and outputting to CustomCursor