def getData4ID(self, tablename, ID):
		"""get the whole row from the database and store it in a dict"""
			   
		fields = self._getFieldsInDB(tablename)
		#DATE_ADD(EndDate, INTERVAL 8 DAY), TIMEDIFF(DATE_ADD(EndDate, INTERVAL 7 DAY), NOW()), TIMEDIFF(EndDate, StartDate)
		SQL = '''SELECT *,DATE_ADD(EndDate, INTERVAL %s DAY),TIMEDIFF(DATE_ADD(EndDate, INTERVAL %s DAY), NOW()),TIMEDIFF(EndDate, StartDate) 
				 FROM %s WHERE ID=%s''' % (self.store_time, self.store_time, tablename, ID)

		array_data = self.execQuery(SQL)
		
		if len(array_data) > 0:
			for x in range( len(fields) ):
				self.data[fields[x]] = array_data[0][x]
			self.data['date_expiration']  = array_data[0][-3]
			self.data['time_expiration']  = array_data[0][-2]
			self.data['time_computation'] = array_data[0][-1]

		return self.data