[MODIF] Improved SQLite statement for check whether DailyTable exists.