I suppose that it won’t make any difference as I understand the app is running in a single user environment, but it were not, these two statements would not be equivalent:
'1
SELECT MAX(id) FROM tbData
'2
SELECT last_insert_rowid() FROM tbData
The first one will returns the current maximum id of the table, whereas the second one returns the last id inserted within the session. They would match in a single user environment, not necessarily in a multi-user one.