insert results in the glue database