Add aura/sql and minor fixes

Strangely, I don't think so. Assignment to $this still works, but passing vars to partial can be accomplished in what might be a better way.