Update GenerateFromDb.php to support PostgreSQL.