add code for ffndb, implements pattern table displaying.