Datatype and querymode

Oh well, at least your still thinking about it.