public ConnectionFileReader(String filepath) {

		File file = new File(filepath);
		Charset charset = Charset.forName("UTF-8");
		try (BufferedReader reader = Files.newBufferedReader(file.toPath(), charset)) {
			String line = null;
			while ((line = reader.readLine()) != null) {
				if (!line.contains("#")) {
					if (line.contains("host")) {
						host = line.split("=")[1];
					} else if (line.contains("database")) {
						database = line.split("=")[1];
					} else if (line.contains("user")) {
						username = line.split("=")[1];
					} else if (line.contains("password")) {
						password = line.split("=")[1];
					}
				}
			}
			// close buffered reader
			reader.close();
		} catch (IOException x) {
			System.err.format("IOException: %s%n", x);
		}
	}