fixed PIL
created company model with ndb