refactor:extract getJoinFieldName
refactor: extract join query
Merge pull request #58 from forumbyr/master

refactor: extract join query