Added loadAllFromDB function.  Bugfixes.