I think these should be depreciated at least as public functions, perhaps they could remain as internally (but the only one used is tquery for the has_table function).