Updated DatabaseHelper and YearTable classes