A lot of changes to insert, tuplescheme, databaseconnection and a new
class constraintschecker.