def position_list(db, limit=10):
    """Return a list of positions ordered by date
    db is a database connection
    return at most limit positions (default 10)

    Returns a list of tuples  (id, timestamp, owner, title, location, company, description)
    """
    cursor = db.cursor()
    sql = "SELECT * FROM positions ORDER BY date(timestamp) DESC Limit ?"
    cursor.execute(sql,(limit,))
    return list(cursor)