Add gear icon and delete function
Update database