First version of kOnlineTracking which output also to database