Implemented UPDATED action, added tests for update in database