Added queries to register patient