* Refactor code in graph-node to use in uniswap * Move over database methods to fetch entities for GQL query