extract function to connect to a database
Command::DeleteTemplate now removes the template database

Not removing it was a bug
Extract common execute() from delete template and database commands
Merge pull request #52 from brummett/delete-template

DeleteTemplate deletes the associated template database