<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _save_to_database(url, property_name, data):
 """ Store `data` under `property_name` in the `url` key in REST API DB. Args: url (obj):
 URL of the resource to which `property_name` will be stored. property_name (str):
 Name of the property under which the `data` will be stored. data (obj):
 Any object. """

    data = json.dumps([
        d.to_dict() if hasattr(d, "to_dict") else d
        for d in data
    ])

    logger.debug("_save_to_database() data: %s" % repr(data))

    requests.post(
        _WEB_URL + _REQUEST_DB_SAVE,
        timeout=REQUEST_TIMEOUT,
        allow_redirects=True,
        verify=False,
        data={
            "url": url,
            "value": data,
            "property_name": property_name,
        }
    )

    logger.info(
        "`%s` for `%s` sent to REST DB." % (
            property_name,
            url,
        )
    )