Fixed the update failure.

The root issue is because a new PassItem instance was created when
loading FrmMainEntry in update mode;
Updated the database constraint.