Add tests for face recognizer accuracy

Use the mysql database to test the recognizer once it has been built.
Also include pictures of unknown people to check the false positive
rate.

Fix SQL query bug related to rebuilding an existing classifier. Every
now and then new images got skipped when rebuilding.