defining time module for generating timespaces
Temp commit before eventhandler rewrite
Minor changes to database to allow add_to_db( opts => :append ) to work better, also moddifed add_to_db to use the key.value when key is a Reference::Variable