introducing analytics tables and parts of analytics daemon

Signed-off-by: Bart Piwowar <bart.piwowar@gmail.com>