Added deleteDatabase() tests and refactorings to accept a database name. Fixed bug with cleanup when community id was empty/null.

https://gus.my.salesforce.com/apex/adm_userstorydetail?id=a07B00000011KYPIA2&sfdc.override=1

@rev bharath@