Finished update/insert/delete function

Modified database: new primary key ID is now set as identity in each
table.
Old primary key(s) is/are now set as unique.