validate dbname