This is again a duplicate of the function in scilifelab/db/statusdb