move log files into a separate directory

Added the function to find blocked queries