one query for retrieving stores