PostgreSQL support for testLastInsertId()

This should fix the lastInsertId phpunit test for PostgreSQL. See https://github.com/wolfcms/wolfcms/pull/473