The inserting code currently only speaks to MySQL databases.
We have MySQL-specific code that sets the charset to be utf-8 and that gets the last inserted ID. For postgres, we would need equivalents.
Also, we would need a new option in the config file to select MySQL or postgres.