private void createPropertyFile(String fileName, String query, String time, String dbName) {
		Properties prop = new Properties();
		ByteArrayOutputStream arrayOut = new ByteArrayOutputStream();
		FileOutputStream out = null;
		File file = new File("src/main/resources/properties");
		if(!file.exists()) {
			file.mkdir();
		}
		file = new File("src/main/resources/properties/" + fileName);
		try {
			prop.setProperty(dbName + "~" + time, query); 
			prop.store(arrayOut, null);
			out = new FileOutputStream(file, true);
			String string = new String(arrayOut.toByteArray(), "8859_1");
			String sep = System.getProperty("line.separator");
			String text = string.substring(string.indexOf(sep) + sep.length());
			out.write(text.getBytes("8859_1"));
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (out != null) {
				try {
					out.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
	}