mongodb base classes; duration functions in date;