fix front page queries to work with mongoengine"