Update views and autocomplete query to mongodb