Helper Method for Renaming a Database

I keep finding myself needing this and you reminded me today that it would be easy to define here. I thought you might find it useful as well. There are some other edits on this file as well, but thats just ST2 removing whitespace.