Rait changes

Added int64 and wstring support.
getLastInsertId returns int64 now.
Minor fixes.