code: public static PreparedStatement createTagTable(Connection connection, String tagTableName) throws SQLException {
          // PostgreSQL and H2 will automatically create an index on TAG_KEY,TAG_VALUE when UNIQUE constraint is set
          try (Statement stmt = connection.createStatement()) {
              // PostgreSQL and H2 will automatically create an index on TAG_KEY,TAG_VALUE when UNIQUE constraint is set
              stmt.execute("CREATE TABLE " + tagTableName + "(ID_TAG SERIAL PRIMARY KEY, TAG_KEY VARCHAR UNIQUE);");
          }
          //We return the prepared statement of the tag table
          return connection.prepareStatement("INSERT INTO " + tagTableName + " (TAG_KEY) VALUES (?)");
      }
docs: Create the tag table to store all key and value
  @param connection
  @param tagTableName
  @return
  @throws SQLException