make the database reconnection code work properly on rails 4.x - need to reset the connection handler as its connection pools now cache the config