Changed ChangeSingleEventActivity to use database