Analyzing database traffic and common problems