MySQL db access for Wikimedia Labs + tests

Change-Id: I6365dd3e41836e3951ed79d33002ddace2234ff5
performance improvements for dbaccess version

* Check multiple names in a single db query
* better variable names
* fixed test
* Unicode problems fixed
* run a set operation to get the list of missing names, not a for loop

Thanks to pairing with Allison, Alan, and Tom.

Change-Id: Iafe9a58dbead12c1e489b8fae3fe13408d92b75a
fixing merge conflict

Change-Id: I854905ee36fb5e5318d301fb21e18f7870e1fd35