Postgresql Row To Json Object In Javascript