docs: private void writeMetadata() throws SQLException {
          LOGGER.info("Writing metadata...");
          PreparedStatement pStmtMetadata = this.conn.prepareStatement(DbConstants.INSERT_METADATA_STATEMENT);
  
          // Bounds
          pStmtMetadata.setString(1, DbConstants.METADATA_BOUNDS);
          BoundingBox bb = this.configuration.getBboxConfiguration();
          if (bb == null) {
              // Calculate bounding box from poi coordinates
              Statement stmt = this.conn.createStatement();
              ResultSet rs = stmt.executeQuery("SELECT MIN(minLat), MIN(minLon), MAX(maxLat), MAX(maxLon) FROM poi_index;");
              rs.next();
              bb = new BoundingBox(rs.getDouble(1), rs.getDouble(2), rs.getDouble(3), rs.getDouble(4));
          }
          pStmtMetadata.setString(2, bb.minLatitude + "," + bb.minLongitude + "," + bb.maxLatitude + "," + bb.maxLongitude);
          pStmtMetadata.addBatch();
  
          // Comment
          pStmtMetadata.setString(1, DbConstants.METADATA_COMMENT);
          if (this.configuration.getComment() != null) {
              pStmtMetadata.setString(2, this.configuration.getComment());
          } else {
              pStmtMetadata.setNull(2, Types.NULL);
          }
          pStmtMetadata.addBatch();
  
          // Date
          pStmtMetadata.setString(1, DbConstants.METADATA_DATE);
          pStmtMetadata.setLong(2, System.currentTimeMillis());
          pStmtMetadata.addBatch();
  
          // Language
          pStmtMetadata.setString(1, DbConstants.METADATA_LANGUAGE);
          if (!this.configuration.isAllTags() && this.configuration.getPreferredLanguage() != null) {
              pStmtMetadata.setString(2, this.configuration.getPreferredLanguage());
          } else {
              pStmtMetadata.setNull(2, Types.NULL);
          }
          pStmtMetadata.addBatch();
  
          // Version
          pStmtMetadata.setString(1, DbConstants.METADATA_VERSION);
          pStmtMetadata.setInt(2, this.configuration.getFileSpecificationVersion());
          pStmtMetadata.addBatch();
  
          // Ways
          pStmtMetadata.setString(1, DbConstants.METADATA_WAYS);
          pStmtMetadata.setString(2, Boolean.toString(this.configuration.isWays()));
          pStmtMetadata.addBatch();
  
          // Writer
          pStmtMetadata.setString(1, DbConstants.METADATA_WRITER);
          pStmtMetadata.setString(2, this.configuration.getWriterVersion());
          pStmtMetadata.addBatch();
  
          pStmtMetadata.executeBatch();
          this.conn.commit();
      }