the _cod_database is a flag for known databases and probably the database you are using is not a well know (Synthetic and developed by the Material Project) database for a known material. But I'm not sure about the extent of the correctness of my answer.
Hi Rabeet, the error says it needs the database code or, "docstring += " from "+ref.databaseabbr[ref.database]+" reference: "+ref.databasecode" try "_coddatabasecode None" it might solve the problem. Good Luck, Amir