Postgresql Variable Declaration Not Allowed