Cli refactoring + tests; Added DateTime util; Rewritten DateTime db mapping;