Adding query abilities to the acid-state for raw store