[BUGFIX] Improve database connection smooth migration wizard

This patch adds support for local database connections over ips applying
to mask 127.xxx.xxx.xxx as specified in RFC 790. Additionally the
support for non local host connections is improved by setting a default
port independent from host name.

Resolves: #52687
Releases: 6.2
Change-Id: I2ddde8241003b78aee8a196ed4bd5dd78e3d20cb
Reviewed-on: https://review.typo3.org/24553
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn