Postgresql Insert Using Sql With Javascript