Initial rough implementation of a visitor pattern for saving, updating and deleting managed entities.