changed 'action' to 'command'. Fixed a tab issue.
added try/except around conn.get_all_dbinstances