changed the patients db and got a lot of patient view working