def query(query, params={}, epoch=None,
          expected_response_code=200, database=None):
    """Wrapper around ``InfluxDBClient.query()``."""
    db = get_db()
    database = database or settings.INFLUXDB_DATABASE
    return db.query(query, params, epoch, expected_response_code, database=database)