Revert "actor: remove dependency on database types"
Created by: bobheadxi
Reverts sourcegraph/sourcegraph#28149
Upon another reading, I'm pretty sure this is an incorrect implementation - the populated context returned from ctxUserFromContext
never gets passed back up, and is thus an incorrect cache. Going to take another approach here, but reverting first