Added foreign keys on submissions