add logs for checking the db performance.