Implements update/delete functions.

!!NOT TESTED!!