From what I gather reading all of the posts here, you are putting the info into a DB just for record keeping, correct?
If that is the case, is there a reason you don't just create/save a project in BIDS? Doing this would allow you full and simple re-use of your code as well as ample space to maintain formatting and documentation. There are many other advantages to this, but if you are using the info in the DB for more than just documentation, it all becomes moot.