insert summaries into database