Commit pre re-implement ArtefactRepository, queries, etc