close db; added down and moving bits to event structs.