Better mongodb API use, using find_one() instead of find()[0].