public PreparedStatement getPreparedStatement(final String sql) throws SQLException
   {
      // Thread.dumpStack();
      if (operationMode == mode.DEVELOPMENT && showQuery)
         System.err.println("Qu: " + sql);

      // Create the statement
      PreparedStatement ps = locDB.prepareStatement(sql);
      return ps;
   }