fixed incorrect FK, added configId FK