Validate database name of partitions