fix scripts, add unique constraint to key name in configuration table