Two-time correlation functions in dissipative and interacting Bose-Hubbard chains