Accept ReplicaSet as a url

rescue URI.parse because that will fail when replica set url is specified.
So, an additional database option can be specified with replica set to ensure db name gets set.