crashes on insert_data, don't know why.