Update dashboard activity table and sql