Finalized annotationSummary and added getFlatTable for database storage