Partial implementation of the classroom and device history collections to add a timestamp -- still not storing history correctly