Added limit support and changed the datetime data type to the sql datetime2

Datetime2 allows millisecond comparisons (i.e. the granularity of the JS date object)