fixed doctors view and database