public static String[] nameSearch(String inName) {
		String[] userInfo = new String[5];
		Connection c = null;
		Statement stmt = null;
		try {
			Class.forName("org.sqlite.JDBC");
			c = DriverManager.getConnection("jdbc:sqlite:Restuarant.db");
			c.setAutoCommit(false);
			System.out.println("Opened database successfully");
			stmt = c.createStatement();
			ResultSet rs = stmt.executeQuery("SELECT * FROM USERS;");
			while (rs.next()) {					
				String name = rs.getString("name");
				String job = rs.getString("job");
				String password = rs.getString("password");
				if (name.equals(inName)) {
				userInfo[0] = (name);
			    userInfo[1] = (job);
				userInfo[2] = (password);
					rs.close();
					stmt.close();
					c.close();
				}
			}
		} catch (Exception e) {
			System.err.println(e.getClass().getName() + ": " + e.getMessage());
			System.exit(0);
		}
		return userInfo;
	}