refactor: move some stuff in better places
database: that's not how copying works
table: that's not how copying works