Fix DateTime and SQLTime issues. Fixes #29.