AttributeError: module 'virtool.samples.db' has no attribute 'get_sample_path'
Error when running analyses of legacy samples:

```
Traceback (most recent call last):
File "/drone/src/virtool/jobs/job.py", line 166, in run
File "/drone/src/virtool/jobs/analysis.py", line 136, in prepare_reads
File "/drone/src/virtool/samples/utils.py", line 97, in join_legacy_read_paths
AttributeError: module 'virtool.samples.db' has no attribute 'get_sample_path'
```
diff --git a/virtool/files/api.py b/virtool/files/api.py
index 172840d26..0b2bd6e82 100644
--- a/virtool/files/api.py
+++ b/virtool/files/api.py
@@ -2,7 +2,6 @@
 Provides request handlers for managing and viewing files.
 
 """
-import os
 import pymongo
 
 import virtool.files.db
diff --git a/virtool/hmm/api.py b/virtool/hmm/api.py
index b0e35e21d..4f1c3a1bf 100644
--- a/virtool/hmm/api.py
+++ b/virtool/hmm/api.py
@@ -6,7 +6,6 @@ import aiojobs.aiohttp
 import virtool.db.utils
 import virtool.errors
 import virtool.github
-import virtool.hmm
 import virtool.hmm.db
 import virtool.http.routes
 import virtool.processes.db
diff --git a/virtool/hmm/db.py b/virtool/hmm/db.py
index f86678077..4108e9eb3 100644
--- a/virtool/hmm/db.py
+++ b/virtool/hmm/db.py
@@ -1,5 +1,3 @@
-import aiofiles
-import aiohttp.web
 import asyncio
 import json
 import logging
@@ -8,10 +6,9 @@ import shutil
 
 import aiofiles
 import aiohttp.client_exceptions
-import semver
+import aiohttp.web
 
 import virtool.analyses.utils
-
 import virtool.db.core
 import virtool.db.utils
 import virtool.errors
diff --git a/virtool/jobs/api.py b/virtool/jobs/api.py
index 2137d3251..67f28b175 100644
--- a/virtool/jobs/api.py
+++ b/virtool/jobs/api.py
@@ -1,9 +1,9 @@
 import os
 
-import virtool.jobs.db
 import virtool.http.routes
-import virtool.jobs
+import virtool.jobs.db
 import virtool.resources
+import virtool.users.db
 import virtool.utils
 from virtool.api import compose_regex_query, conflict, json_response, no_content, not_found, paginate
 
@@ -34,6 +34,7 @@ async def find(req):
     )
 
     data["documents"].sort(key=lambda d: d["created_at"])
+    data["documents"] = await virtool.users.db.attach_identicons_to_documents(db, data["documents"])
 
     return json_response(data)
 
diff --git a/virtool/samples/utils.py b/virtool/samples/utils.py
index 78c2b535b..1dec67fb3 100644
--- a/virtool/samples/utils.py
+++ b/virtool/samples/utils.py
@@ -1,7 +1,5 @@
 import os
 
-import virtool.samples
-
 PATHOSCOPE_TASK_NAMES = [
     "pathoscope_bowtie",
     "pathoscope_barracuda"
@@ -94,7 +92,7 @@ def join_legacy_read_paths(settings: dict, sample):
     :return: a list of sample read paths
 
     """
-    sample_path = virtool.samples.db.get_sample_path(settings, sample["_id"])
+    sample_path = join_sample_path(settings, sample["_id"])
 
     if not all(f["raw"] for f in sample["files"]):
         if sample["paired"]:
['virtool/hmm/api.py', 'virtool/jobs/api.py', 'virtool/files/api.py', 'virtool/hmm/db.py', 'virtool/samples/utils.py']