dealing with updating status

next: Put in actual database link