One function, called twice: once for id 1 (exists) and once for id 2 (missing).
1
2
If Web SQL is not supported, the log will tell you.
Lines: 0 | Characters: 0