update to scala 2.11 and fix update primary key issue