Complete ContentProvider implementation in SDK.

Added all handling for SQLite database and ContentProvider
implementation.