fix bug

When db is empty, will not call Google API