Hi, For your first question, there is nothing built in that would enable you to do that. However, if you really wish to have some functionality like that you could implement it.
For your second question the answer is that it is possible. As a matter of fact, the Cloud that I manage at the laboratory where I work, the whole cloudstack structure (database and management servers) run over the cloud they are managing (they can even manage their on VMs instance). What do you mean with command to connect to database server?
