Added left and right joins to qb