Rename database fields
- In order to keep consistency with the others data table and to avoid ambiguities, rename the database fields in the following ways:
objects.reference --> objects.object
objects.serial_number --> objects.reference
objects.batch_number (decide to keep it or not)
events.data --> events.model (to avoid confusion with history.data)