Update GenerateFromDb.php to support PostgreSQL.

Can you test if MySQL is always OK with this patch, please ?
And if it is, can you also merge this patch to the `Gadoma-extendedmodels` branch ?

Thank you !