Gives data to database

def post(self, url: str, data: List[dict]) -> List[dict]:
        """ Gives data to database """
        data.update({
            'key': self.api_key,
        })
        response = requests.post(
            url,
            data = json.dumps(data),
            headers = {'Content-type': 'application/json'},
            auth = ('scicrunch', 'perl22(query)') # for test2.scicrunch.org
        )
        output = self.process_response(response)
        return output