DHS/rat — pull request #90 by DHS (2012-04-26 04:22:22+00:00)
Title: Use mysqli, amendments to #88

This pull request started life here: #88 - thanks @timw4mail!
Apologies for all the extra crap in this pull request.

The magic is here: 44614a5, 3c4fabd and d2c03d1