* replaced native dll call with .net code
* commented market code that is not used with current database layout
* fix probable sign loss in datetime and uint64