Get all database names using -dbnames