Updated the model layer for many-to-many tables to share the abstract table query builder
SITE-510: Fixed type coercion when reading from the DB

- This is actually caused by a type mis-alignment between the DB
  and the model but this fixes it for now.