adds analytics, starts database implementation