public static boolean insert(Object bean) {
		
		String sql;
		PreparedStatement stmt=null;
		
		try{
			if(bean instanceof Patient){
				sql = "INSERT into patients ("+Patient.getTableSchema()+") " +
					"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
				stmt=conn.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
				return insertPatient((Patient)bean, stmt);
			}
			if(bean instanceof Employee){
				sql = "INSERT into employees ("+Employee.getTableSchema()+") " +
						"VALUES (?, ?, ?, ?, ?, ?, ?, ?)";
				stmt=conn.prepareStatement(sql);
				return insertEmployee((Employee)bean, stmt);
			}
			if(bean instanceof Drug){
				sql = "INSERT into drugs ("+Drug.getTableSchema()+") " +
						"VALUES (?, ?, ?, ?, ?, ?)";
				stmt=conn.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
				return insertDrug((Drug)bean, stmt);
			}
			if(bean instanceof Prescription){
				sql = "INSERT into prescriptions ("+Prescription.getTableSchema()+") " +
						"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
				stmt=conn.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
				return insertPrescription((Prescription) bean, stmt);
			}
			if(bean instanceof Schedule){
				sql = "INSERT into Schedules ("+Schedule.getTableSchema()+") " +
						"VALUES (?, ?, ?, ?, ?, ?)";
				stmt=conn.prepareStatement(sql);
				return insertSchedule((Schedule)bean, stmt);
			}
		}catch(SQLException e){
			System.out.println("sql exception within insert()");
			System.out.println(e);
		}finally{
			if(stmt !=null)
				try {
					stmt.close();
				} catch (SQLException e) {
					System.out.println("error when closing stmt within insert()");
					e.printStackTrace();
				}
		}
		return false;
	}