implement getAllLogs. Need to polish these and still check for possible null pointer exceptions