create models before building query
adding support for intermediate tables to querySetup
querySetup properly configures spec
refactored from/join logic
minor cleanup
add in lastQuery to qb instance
cleanup before merge