Database for storing statistics data in erlang