Lots of changes:
* Images are now preferentially shown according to their rating.
* Changed None tag so that it works more sensibly. Now it is just
like the other tags except that it turns the others off (and the
others turn None off).
* Reworked queries to be more efficient.
* Implemented Database Info command.