Corrected some db to ndb mistakes.