recursive implemented and params bug fixed
Prepared statements for the history loader, SQL ORDER BY ASC, bugfix