jk. the sql is in this commit.