add upsert an account and update keys