fixes for node service getSql