public void enter(String sqlstatement, int type){
		
		try {
			Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
			String url = "jdbc:derby:" + DBName;
			Connection connection = DriverManager.getConnection(url);
			Statement statement = connection.createStatement();
			switch (type) {
			case QUERY:
				ResultSet rs = statement.executeQuery(sqlstatement);
				new ServerResultFrame(rs);
				break;
			case UPDATE:
				statement.executeUpdate(sqlstatement);
				new ServerResultFrame("Query Executed");
				break;
			default:
				break;
			}
			statement.close();
			connection.close();
		}
		catch(Exception e){
			new ServerResultFrame(e.getMessage());
		}
	}