Changed to standard C types and fixed data structure
Added DATETIME length constant
Fixed user add