Tidier transfer of URI list to the DB and back.