c8135d811d
templates/queries-index-mysql.tpl.html, templates/queries-index-sqlite.tpl.html: Rather than driving the search from the eps table itself, this version makes a counter that generates slot numbers from the current show number to the highest show number in the system. The counter is used to interrogate the eps table to find the first empty slot. This sems to be a more reliable approach (but time will tell).