fixed res_subject column rename in index too and corrected typo glitch in schema-ddl script