small improvment for the extraction of the data base