Sport History function implemented

Sport history function has been implemented, note that this may break
soon as we change the database tables.