add persistence for queries using MapDB