* Change PostgreSQL connstring parsing to handle IPv6 * Fix used variable * Remove redundant code + use variable