Database updates for analytics