Fixed warnings. Modified the load method of course_data_field_date so that it doesn't set data back to null resulting in the initialise_data method being called to insert an extra record in the database