I think this should go into its own file (maybe along with the rest of the stuff related to creating/dropping dbs). Whenever I see something that defines an object with methods and properties like this, I immediately think it should be put into its own file.