Change way of using ndb

Apparently I was using it wrong...