execute insertdata in a background task that can run for up to 10
minutes