Fixed DateTime bug.
Removed some obsolete code from the Table Query Builder.