change insert and update method and remove autoincrement