fix missing newline in output
make empty database at program start work again
add mapping enabling the _timestamp

For instance, this can be put on the server using:
curl -XPUT 'http://localhost:9200/cli/_mapping/cli' -d "`cat cli_mapping.json`"