Remove stray debugging lager info message
Fix bug where legacy queries never match in eleveldb

The wrong paramter was used to match in the function head for
to_first _key
Upgrade legacy queries to cut down the number of `index` fun heads