Functionality for repeating fields added. Primary and foreign keys working correctly.