implemented tasks listing using mongodb connection