Fixed si update and refactored some of the chemical records controller. ...

...Closes #936.