load data to the database during creation or during update