replaced runquery chain to py
fixing str and json changes
moved retreiving info to py
removing db from node