Completed table join and search functionality.