Updated npm pg package version, some syntactic updates and updated version number in smart.json