Fix SQL request for properly handling theme vote.

There was an assumption that a single theme was in the database.
Add entry for version 3.5.3