move date filter to DBHelper class