Validate DB names.