private void collectUpdates() {
		console.printf("Scanning %s for updates ...\n",
				updatesfolder.toString());

		updates = new ArrayList<DBUpdate>();

		DirectoryStream<Path> files;
		try {
			files = Files.newDirectoryStream(updatesfolder);
		} catch (IOException e1) {
			e1.printStackTrace();
			return;
		}

		for (Path file : files) {
			// only use sql files
			if (file.getFileName().toString().endsWith(".sql")) {
				try {
					DBUpdate u = new DBUpdate(file);
					updates.add(u);
				} catch (DBUpdateInvalidFilenameException
						| DBUpdateNotAFileException
						| DBUpdateNotReadableException e) {
					console.printf("Skipping %s because of errors!\n",
							file.toString());
				}
			}
		}

		// sort
		Collections.sort(updates);
	}