Error Handling
Functions that return toid or tmid values will return h::tblNullToid or h::tblNullTmid to indicate failure.
Functions that return [0|1] will return 0 to indicate error.
List functions return 0 to indicate that no data was returned in an array.