add a function for tailing the postgres logs