changed insert to check id first and only send back one object on success