Setting many-to-many references for database table in DbTable class