just edited UserEndpoint to update the User entity if insert is called
with an existing id