CLSN-2167make all repository classes internal
CLSN-2165move all queries to session.query from session.queryover