Debugged PatientDB and fixed a few issues in PatientPanel
Some more minor changes