public static boolean chooseOpen() {
		JFileChooser cho = new JFileChooser(file);
		cho.setFileSelectionMode(JFileChooser.FILES_ONLY);
		FileFilter emu = new FileFilter(){{}
		@Override
		public boolean accept(File f) {
			if (f.isDirectory())
				return true;
			String ext = getExtension(f);
			if (ext != null) {
				if (ext.equals("db"))
					return true;
				else
					return false;
			}
			return false;
		}
		@Override
		public String getDescription() {
			// TODO Auto-generated method stub
			return "*.db Database Files";
		}};
		cho.addChoosableFileFilter((javax.swing.filechooser.FileFilter) emu);
		cho.setFileFilter(emu);
		cho.setSelectedFile(file);
		
		int choice = cho.showSaveDialog(Main.mainInstance.frame);
		System.out.println(choice);
		if (choice == JFileChooser.APPROVE_OPTION) {
			File f = cho.getSelectedFile();
			String ext = getExtension(f);
			if (ext==null||!ext.equals("db"))
				f = new File(f.getAbsolutePath()+".db");
			return openFile(f);
		}
		
		return false;
	}