added missing input options
updated single PK handling, using column name instead of id
updated namespace injection for relation tables