Fixed bug, now writes daily movement data to mongoDB