Hospital & Surgeon IDs & other

The insert / update to SQLite now incorporates hospital and surgeon
IDs. There were also some other bug fixes done to the case details page.