Add fetch and update method for resource
Add method to load type code from dictionary
Fix: database schema
Add lang chains