Cleaned up SQLite Behavior

fixed the offline data usage.