Fix so the detection can say which object was correctly detected.

Before this patch the recognition was giving any detection the first item in the db as the matching result, now it correctly points out to the one that really matched.

![screenshot from 2014-03-08 16 27 15](https://f.cloud.github.com/assets/1721716/2365675/90cddff0-a6d6-11e3-9229-c873e1fa847b.png)

Working with real xtion and having 5 objects trained (big pringles, a bottle of energy drink, little pringles, a mug that looks like a camera lense, and a can of "alubias").
![screenshot from 2014-03-08 16 31 44](https://f.cloud.github.com/assets/1721716/2365681/cda1de5e-a6d6-11e3-8cae-a539a6be8faf.png)
![screenshot from 2014-03-08 16 31 50](https://f.cloud.github.com/assets/1721716/2365682/d07dcf8e-a6d6-11e3-9b73-a0b6de9f8442.png)