public static void executeSqlFile(String path) throws SQLException, IOException, ClassNotFoundException {
        Class.forName("org.postgresql.Driver");
        Connection connection = null;
        connection = DriverManager.getConnection(
                Configuration.getJdbcString(), Configuration.user, Configuration.password);
        Statement stmt = connection.createStatement();
        String query = readFileUtf8(path);
        List<String> sqls = Arrays.asList(query.split(";"));
        for (String sql : sqls.subList(0, sqls.size())) {
            System.err.println("executing query: " + sql);
            stmt.execute(sql);
        }
        stmt.close();
        connection.close();
    }