[util] Check the zscale and cubedims for a given database