- Create a single callback function that gets called by each of the db queries - Add a counter to make all necessary queries are returned before sending html