Fix cloning of tables and record classes in Repository
Put Transaction in its own file
Add Record.transaction, .commit, .rollBack