pass server name to after_connect block
Call the :after_connect Database option proc with both the connection and server/shard if it accepts 2 arguments

This fixes usage with an after_connect lambda proc that takes a
single argument, as well as fixes usage on ruby 1.8 that was
broken in the previous commit.