corrected the reactions and types tables in the database to have INTEGER
type for the id instead of INT
 corrected the generation of pdf report in tex_writer