Hi Steve
Does the webserver have the privileges to insert records in yourtables?Maybe you have to grant this rights.
See the GRANT statement in the pg docs for information.
regardsConni