def METHOD_NAME(database):
    '''
    database should be a sql regression database
    '''
    result = {}
    for module in database.getModules():
        for test in module.tests:
            lines = {}
            for series in test.serieses:
                line = []
                for m in series.measurements:
                    line.append([m.created.timestamp() * 1000, m.value])
                lines[series.name] = {
                    "data": line,
                    "unit": series.quantity.unit
                }
            result[module.name + "/" + test.name] = lines
    return result