Small fixes, added additional column for the patient's id, the reference key column now is not any more primarey key, simply unique constraint has been put on it.