refactors url configuration
cleans up error detection
passes pool configuration to poolboy