Let dbcon_t * be used as a hash key

We had this code in a couple of places in OkCupid-land, just upstreaming it.