database script added plus correction on program_length_measurement