added isEmpty() method to OfflineDB