BibFormat: Read record_stats from ES (if enabled)

* Record stats are being loaded from elasticsearch if elasticsearch is
  enabled (if not, they are being loaded from DB as before).

Signed-off-by: Sebastian Witowski <sebastian.witowski@cern.ch>