Querying Context-Aware Databases