There is a TDAC database.
The immigration officials at the entry points have access to this database.
The immigration officials at the provincial immigration offices don't seem to have access to this database.
The immigration officials in both places are part of the Immigration Bureau, which is part of the Royal Thai Police, which is part of the Ministry of the Interior.