Almost working version. Need to convert the shared lists to associations to be able to order the queries...