Fixed issue #8518: Error during fresh installation on PostgreSQL/MSSQL and using a non-default table prefix