Modified script-db.js to add carer patient relations