Refactor ref to point to root
Get specific language and dialect info from database