fixed row update issue, added triggers