Add database name in "last sample" output