Updated the model layer for many-to-many tables to share the abstract table query builder