Javascript Dynamically Create Table In Postgresql