added self.primary_key = "id" to model which have varchar primary key instead of integer