removed useless query in upsert

upsert was performing an additional query to save the model again even if it was created