Generates a list of databases used by application/environment