tt_old_db: use TT_DB_OK instead of NULL