Fix Swipe View bug to handle documents in different databases

Signed-off-by: Matt White <matthew.white@fclonline.com>