/** Add the given tag to the task */ public boolean addAlert(TaskIdentifier taskId, Date date) throws SQLException { ContentValues values = new ContentValues(); values.put(Alert.DATE, date.getTime()); values.put(Alert.TASK, taskId.getId()); return alertDatabase.insert(alertsTable, Alert.TASK, values) >= 0; }