update database, activity rotation