Implement tm_db_t