Ensure records inserted as needed