use mongodb method distinct to get list of books