   `:timeout`        HTTP timeout in milliseconds. (default: `5000`)"
   [opts]
   (let [write-url
-        (format "%s://%s:%s/write" (:scheme opts) (:host opts) (:port opts))
+        (format "%s://%s:%s/write?db=%s" (:scheme opts) (:host opts) (:port opts) (:db opts))
 
         payload-base
         (cond->

        (when-not (empty? points)
          (->> points
               (assoc payload-base "points")
               (json/generate-string)
               (assoc http-opts :body)
               (http/post write-url)))))))



        (cond->
          {:socket-timeout (:timeout opts 5000) ; ms
           :conn-timeout   (:timeout opts 5000) ; ms
           :content-type   "application/x-www-form-urlencoded"}
          (:username opts)
            (assoc :basic-auth [(:username opts)
                                (:password opts)]))
