made compatible with materials project structure. Added a method to make subsets of database