Okay, does it work if you return code to the original version? Does compilation of different models work?
Also, can you explicitly confirm that you tested access to the cross-reference database? You mentioned a database, but maybe you tried a different database. Can you use Find references in Visual Studio?
The name of the cross-reference (xref) database is defined in DynamicsDevConfig.xml. It's typically not something to worry about, but it's possible that you use multiple xref databases or that your setup got corrupted.