Postgresql Function Insert Into Mysql Using Php Variable In Javascript