also insert fragments into database