added support to query recent data from data storage. untested and not fully complete.