fix JoiningTableDataDisplay which was doing a lot of sql queries
add automatic test data for performance tests