Use proper JOINs in Ticket::IndexAccellerator::StaticDB

Might be a bit faster on some DBs, and is certainly more idiomatic.