public void exportDBData(Connection conn, String filename) {
		Statement statement;
		try {
			fstream = new FileWriter("./extracted_data/extract.txt",true);
			buffer = new BufferedWriter(fstream);

			statement = conn.createStatement();
			String queryString = "select r.USER_LOGIN, r.EXTERNAL_USER_ID, d.DB_NAME from platform.dbo.IU_REL_APP_USERS_SLICES r, platform.dbo.IU_SLICES s, platform.dbo.IU_DATABASES d where r.SLICE = s.SLICE and s.DB_ID = d.ID";
			ResultSet rs = statement.executeQuery(queryString);
			while (rs.next()) {
				try {
					buffer.write(rs.getString(1) + " " + rs.getString(2) + " " + rs.getString(3));
					buffer.newLine();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			logger.info("Exported DB Data to " + filename);
		} catch (SQLException sqlException) {
			logger.error(sqlException);
		} catch (FileNotFoundException fileNotFoundException) {
			logger.error(fileNotFoundException);
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} finally {
			try {
				if (conn != null) {
					conn.close();
				}
				if (buffer != null) {
					buffer.close();
				}
			} catch (SQLException sqlException) {
				logger.error(sqlException);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}