Three-manifolds and Lagrangian correspondences