Support Query objects in datums. Closes #50.
Simplified native to datum conversion. Made more functions accept dynamic values (especially table and db operations)