Use a stored prodedure also for logging hits.

Again, mostly to reduce the roundtrips.  Stored procedures in MySQL aren't
really that great... although we are using connection pooling.