2.3/dev Improvements to formatting system and relation as join feature

Generate a join query based on a predefined relation