Make inser_or_errors an imported fn