public Connection abrirBanco(Connection con) throws ClassNotFoundException, SQLException{
        //System.out.println("jdbc:derby:"+dbPath);
        try {
            Properties props = new Properties();
            props.put("create", "false");
            props.put("user", user);
            props.put("password", senha);
            
            Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
            con = DriverManager.getConnection("jdbc:derby:"+dbPath, props);
            con.createStatement().execute("set schema root");
            
            
        } catch (SQLException ex) {
            Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);
        } 
        
        return con;
    }