Switched model to use NDB.