Fix the creation of a new record

Newly created objects must store the database on which the object was
created, as in django.db.models.base.Model.save()
Otherwise, the dn for the newly created object cannot be generated as
it depends on the BASE_DN of the db connection.