only update model if it exists, otherwise create it