added DATETIME type and an exception when undefined type given