async def get_top_map(database, user_id, platform_id):
    """Get top map for user."""
    query = """
        select map_name as name
        from players join matches on players.match_id=matches.id
        where user_id=:id and matches.platform_id=:platform_id and winner=true and human=true
        group by map_name
        order by count(id) desc limit 1
    """
    top = await database.fetch_one(query, values={'id': user_id, 'platform_id': platform_id})
    if top:
        return dict(top)
    return None