Change method to determine if the table is empty

queryNumEntries API perform "COUNT(*)" query.
It is slower than New API that perform "EXISTS".
If the goal is to determine if the table is empty,
using new API is better.

[+] https://android-review.googlesource.com/52750

Change-Id: Idcc2633d0a5349c59f41e125cf34c9dc6622cdbe