Calling scope with a string, insert clause with upsert