Wired up postgres db table projects to angular.js. disabled pgdb.js that's very unstable due to poor understanding of pg module