User typehinting for $db param