Added sample mode, external setting of database/port in kOnlineTracking