Symmetry relation database and its application to ferroelectric materials discovery