fixed issue with history creating, fixed issue with autoinc on save()