replaced local file store with sqlite database - in progress