public void MySQLStructre(DatabaseAccess JavaDBAccess) {
        Connection conn = null;
        PreparedStatement ps = null;
        Statement s = null;
        ResultSet rs = null;
        int MYSQL_QUERIES_ID = 0;
        String SQL_COMMAND = "", SQL_COMMAND_STRUCTURE = "";
        String[] SQL_COMMAND_STRUCTURE_VARIABLES = null;

        try {
            if ((conn = JavaDBAccess.setConn()) != null) {
                System.out.println("Connected to database " + JavaDBAccess.getDatabaseName());
            } else {
                throw new Exception("Not connected to database " + JavaDBAccess.getDatabaseName());
            }

            conn.setAutoCommit(false);

            s = conn.createStatement();
            rs = s.executeQuery("SELECT ID, SQL_COMMAND FROM MYSQL_QUERIES WHERE SQL_COMMAND_STRUCTURE IS NULL");
            while (rs.next()) {
                MYSQL_QUERIES_ID = rs.getInt("ID");
                SQL_COMMAND = rs.getString("SQL_COMMAND");
                SQL_COMMAND_STRUCTURE_VARIABLES = getSQLCommandStructure(SQL_COMMAND);
                SQL_COMMAND_STRUCTURE = SQL_COMMAND_STRUCTURE_VARIABLES[0];
                ps = conn.prepareStatement("UPDATE MYSQL_QUERIES SET SQL_COMMAND_STRUCTURE=? WHERE ID=?");
                ps.setString(1, SQL_COMMAND_STRUCTURE);
                ps.setInt(2, MYSQL_QUERIES_ID);
                ps.executeUpdate();
                ps.close();
            }
            conn.commit();
            rs.close();
            s.close();
            conn.close();

        } catch (Throwable e) {
            System.out.println("exception thrown:");

            if (e instanceof SQLException) {
                JavaDBAccess.printSQLError((SQLException) e);
            } else {
                e.printStackTrace();
            }
        }
    }