Implement ContentProvider for database access