Fetch EDGE Sync data

I want to know if it is possible to get the data stored by the Sync Service in the local data base of the main gateway by doing a query. Would it be simple? Is it necessary to use the Tag Historian module to fetch that data? or is it possible the get it using a query. Thanks in advance!