in memory DB implemented + querying for range of data in DB