Creating Folders through SQL?

I ended up rolling my own, description/code here: