Machine-learning helps sort out massive materials' databases