fix error to retrieve log of running database