clean up the code syntax; updated comments
Multi-databases - added nesting configuration
Added getDatabases method in AbstractCommand