Move the table cache routines to res_odbc, so they can be used from other