One says DATATYPE_Login and the other says DATATYPE_Rates.
Post a small and complete example, with error messages.
Snipping out random lines and posting them doesn't work.
Also, you seem to have multiple threads on the same subject, which is not a good thing.