Fixed an issue where hidden projects would show up in search results and in list creation. Some of the functions now use the ProjectRepository that has been set up for this purpose (to re-use database queries).