Wrote query that updates profile
So much pattern matching