Fix pgsql uri parsing for empty hosts.

Don't use and empty string as a valid hostname, we want either the
default unix socket or "localhost" to be used in that case.
When migrating from MySQL, add columns names to the COPY command. Fixes #132.