Add missing ndb import for QueryOptions
Correct syntax around article queries, improve rating algorithm