[BUGFIX] DBAL: Fix retrieving the last insert id