code: private int readChunkSize() {
          // read chunk size from database
          int chunkSize = -1;
          Connection conn = null;
          try {
              Class.forName("org.sqlite.JDBC");
              conn = DriverManager.getConnection("jdbc:sqlite:" + databasePath);
              Statement stmt = conn.createStatement();
              ResultSet rs = stmt.executeQuery("SELECT value FROM info where name = 'chunkSize';");
              while (rs.next()) {
                  // the first is read
                  chunkSize = Integer.parseInt(rs.getString("value"));
                  break;
              }
              conn.close();
          } catch (SQLException e) {
              logger.error(e.getClass().getName() + ": " + e.getMessage());
              cleanConnectionClose(conn, null);
          } catch (ClassNotFoundException e) {
              logger.error(e.getClass().getName() + ": " + e.getMessage());
              e.printStackTrace();
          }
          return chunkSize;
      }
docs: Read chunk size from the database.
  
  @return  Chunk size